Skip to content

Conversation

@quaff
Copy link
Contributor

@quaff quaff commented Nov 28, 2024

The javadoc of StructuredLoggingJsonMembersCustomizer doesn't mention that, and I'm failed to reproduce it, I believe it cannot be loaded from spring.factories.

Currently, `org.springframework.boot.logging.structured.StructuredLoggingJsonMembersCustomizer` cannot be loaded from `spring.factories`
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 28, 2024
@wilkinsona
Copy link
Member

Thanks, @quaff, but the documentation is correct. The customisers are loaded here:

@SuppressWarnings({ "unchecked", "rawtypes" })
private List<StructuredLoggingJsonMembersCustomizer<?>> loadStructuredLoggingJsonMembersCustomizers() {
return (List) this.factoriesLoader.load(StructuredLoggingJsonMembersCustomizer.class,
ArgumentResolver.from(this.instantiator::getArg));
}

If that's not working for you, please open an issue with a minimal sample and we can investigate.

@wilkinsona wilkinsona closed this Nov 28, 2024
@wilkinsona wilkinsona added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 28, 2024
@quaff
Copy link
Contributor Author

quaff commented Nov 28, 2024

@wilkinsona #43312 created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: invalid An issue that we don't feel is valid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants